/* eslint-disable no-undef */
if (!/pnpm/.test(process.env.npm_execpath || '')) {
  console.warn(
    `\u001b[33mThis repository must using pnpm as the package manager ` +
      ` for scripts to work properly.\u001b[39m\n`,
  );
  console.warn(
    `\u001b[33m该仓库必须使用 pnpm 作为包管理器，以便脚本正常工作。\u001b[39m\n`,
  );
  process.exit(1);
}
